import React from 'react';

import CommonSendFetchAction from '../common/CommonSendFetchAction';
import Constants from '../../common/Constants';

export default class RequestQuanziContentAction extends CommonSendFetchAction {
  constructor() {
    super();

    this.moduleType = Constants.MODULE_TYPE.QUAN_ZI;
    this.name = "RequestQuanziContentAction";
  }

  _dealFinishSucess(data, response) {
    let detail = "";
    if(data && data.detail != undefined) {
      detail = data.detail;
    }
    this.caller.setState({
      viewStatus:response.status,
      isResponeUpdate:false,
      isContentUpdate:true,
      statusText:detail,
      contentData:data,
    })
  }
}
